const messageCenter = [
  {
    path: 'messageCenter',
    component: () => import(/* webpackChunkName: "platform" */ '@/layout/platform'),
    name: 'MessageCenter',
    redirect: '/messageCenter',
    alwaysShow: true,
    meta: {
      title: 'messageCenter',
      icon: 'el-icon-message',
      code: 'MessageCenter'
    },
    children: [
      {
        path: 'inbox',
        name: 'Inbox',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/messageCenter/inbox'),
        meta: {
          title: 'inbox',
          code: 'Inbox',
          icon: 'el-icon-chat-line-round'
        }
      },
      {
        path: 'outbox',
        name: 'Outbox',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/messageCenter/outbox'),
        meta: {
          title: 'outbox',
          code: 'Outbox',
          icon: 'el-icon-chat-round'
        }
      },
      {
        path: 'drafts',
        name: 'Drafts',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/messageCenter/drafts'),
        meta: {
          title: 'drafts',
          code: 'Outbox', // 草稿箱与发件箱code一致，都是写消息
          icon: 'el-icon-chat-dot-round',
          deleteThis: true
        }
      }
    ]
  }
];

export default [
  ...messageCenter
];
